package com.wuzheng.wisgo.sanitation.framework.core.exception;

/**
 * @author：hibon
 * @date：Created in 2019/08/21
 * @description：平台服务层异常，主要是在业务数据或者状态异常时使用
 * @modified By：
 * @version: 1.0
 */
public class ServiceException extends RuntimeException{

    private Integer code;

    public ServiceException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public ServiceException(Integer code,String message) {
        super(message);
        this.code = code;
    }

    public ServiceException(String message) {
        super(message);
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
